package com.twetec.cms.model.vo.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 文章模块--其他配置
 */
@ApiModel
public class OtherConfigVO implements Serializable {

    @ApiModelProperty(value = "排序类型(置顶ZHI_DING,发布时间FA_BU_SHI_JIAN,自定义ZI_DING_YI)", example = "ZHI_DING")
    private String sortType;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "排序文章id", example = "45465454")
    private Long sortArticleId;

    @ApiModelProperty(value = "上一篇文章标题", example = "上一篇文章标题")
    private String lastArticleTitle;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上一篇文章标题id", example = "1234567891")
    private Long lastArticleId;

    @ApiModelProperty(value = "下一篇文章标题", example = "下一篇文章标题")
    private String nextArticleTitle;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "下一篇文章标题id", example = "1234567891")
    private Long nextArticleId;

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public Long getSortArticleId() {
        return sortArticleId;
    }

    public void setSortArticleId(Long sortArticleId) {
        this.sortArticleId = sortArticleId;
    }

    public String getLastArticleTitle() {
        return lastArticleTitle;
    }

    public void setLastArticleTitle(String lastArticleTitle) {
        this.lastArticleTitle = lastArticleTitle;
    }

    public Long getLastArticleId() {
        return lastArticleId;
    }

    public void setLastArticleId(Long lastArticleId) {
        this.lastArticleId = lastArticleId;
    }

    public String getNextArticleTitle() {
        return nextArticleTitle;
    }

    public void setNextArticleTitle(String nextArticleTitle) {
        this.nextArticleTitle = nextArticleTitle;
    }

    public Long getNextArticleId() {
        return nextArticleId;
    }

    public void setNextArticleId(Long nextArticleId) {
        this.nextArticleId = nextArticleId;
    }

    @Override
    public String toString() {
        return "OtherConfigVO{" +
                "sortType='" + sortType + '\'' +
                ", sortArticleId='" + sortArticleId + '\'' +
                ", lastArticleTitle='" + lastArticleTitle + '\'' +
                ", lastArticleId=" + lastArticleId +
                ", nextArticleTitle='" + nextArticleTitle + '\'' +
                ", nextArticleId=" + nextArticleId +
                '}';
    }
}
